home *** CD-ROM | disk | FTP | other *** search
- on enterFrame
- global lijstvanjaartallen, InsertLijstvanJaartalLocHs, InsertLijstvanJaartalWidths, InsertLijstvanJaartalHeights, schuiffactor
- sprite(66).blend = 0
- updateStage()
- InsertLijstvanJaartalLocHs = []
- InsertLijstvanJaartalWidths = []
- InsertLijstvanJaartalHeights = []
- tellertje = 1
- repeat while tellertje <= 50
- Ditjaar = lijstvanjaartallen[tellertje]
- if offset(" - ", Ditjaar) then
- set the member of sprite (tellertje + 10) to "periode"
- linkerkantvanjaartal = (value(chars(Ditjaar, 1, offset(" - ", Ditjaar) - 1)) * 7) + 81
- rechterkantvanjaartal = (value(chars(Ditjaar, offset(" - ", Ditjaar) + 3, length(Ditjaar))) * 7) + 81
- Boven = 74
- Onder = 137
- InsertLijstvanJaartalWidths[tellertje] = rechterkantvanjaartal - linkerkantvanjaartal
- InsertLijstvanJaartalHeights[tellertje] = 63
- else
- set the member of sprite (tellertje + 10) to "jaartal"
- linkerkantvanjaartal = ((value(Ditjaar) - 2) * 7) + 81
- rechterkantvanjaartal = ((value(Ditjaar) + 2) * 7) + 81
- Boven = 91
- Onder = 119
- InsertLijstvanJaartalWidths[tellertje] = 63
- InsertLijstvanJaartalHeights[tellertje] = 63
- end if
- Links = linkerkantvanjaartal + (7 * schuiffactor)
- Rechts = rechterkantvanjaartal + (7 * schuiffactor)
- sprite(tellertje + 10).rect = rect(Links, Boven, Rechts, Onder)
- InsertLijstvanJaartalLocHs[tellertje] = sprite(tellertje + 10).locH
- tellertje = 1 + tellertje
- end repeat
- end
-